const express = require("express");
const path = require("path");
let app = express();
app.get("/",(req,res)=>{
    // 3000端口加载的页面 ，请求4000端口的数据
    res.sendFile(path.join(__dirname,"./views/index.html") );
})

app.listen(3000,function(){
    console.log("server run at 3000");
});